<?php
class Nhanvien extends Zend_Db_Table_Abstract{
    protected $_name;
    protected $_primary = 'NhanVienID';

    function __construct() {
        $this->_name = DB_PREFIX . "nhanvien";
        parent::__construct();
    }

    public function getColumns() {
        $results = array('NhanVienID', 'TenNhanVien', 'SoDienThoai');
        return $results;
    }

    public function getPrimaryKey() {
        $pk = $this->_primary;
        if (is_array($pk)) {
            if (count($pk) > 0)
                return $pk[1]; // array[1] contain column name of primary key
        }
        return $this->_primary;
    }
}
?>
